from PyQt6.QtWidgets import QApplication, QLabel
from PyQt6 import uic
import sys

if __name__ == '__main__':
    app =QApplication(sys.argv)
    ui = uic.loadUi("./ui文件.ui")
    my_label:QLabel = ui.label
    print(my_label.text())
    ui.show()



    sys.exit(app.exec())